import Vue from 'vue'
import vuex from 'vuex'
import createLogger from 'vuex/dist/logger'
import token from './token'

Vue.use(vuex);
const debug = process.env.NODE_ENV!=='production'
export default new vuex.Store({
	modules:{
		token:token
	},
	strict:debug,
	plugins:debug?[createLogger()]:[]
})